<?php


namespace app\controllers;


use yii\web\Controller;

class BaseController extends Controller
{

    public $layout = false;

    public function init()
    {
        parent::init();
        if (!extension_loaded('swoole')){

            die("Please install the swoole extension".PHP_EOL);
        }
    }

}